package com.cet.java8;

/**
 * @program: cet-practice
 * @description:
 * @author: 陈恩涛
 * @create: 2022-12-07 13:07
 **/

@FunctionalInterface
public interface BranchHandler {

    /**
     * 分支操作
     * @param trueHandler 判断为true时的操作
     * @param falseHandler 判断为false时的操作
     */
    void trueOrFalseHandle(Runnable trueHandler, Runnable falseHandler);
}
